package com.happyscan138.makefun.base;

import android.content.res.Resources;
import android.widget.ImageView;

/**
 * Created by Administrator on 2016/12/8.
 */

public class translation {
    Resources resources;
    public static  ImageView imagetab;//下划线
    private static int position_one;//初始位移
    private static int pWidth;//宽度
    private static int offset ;// 图片偏移量
    public  static int num ;
    private static int currIndex = 0;

    public void InitWidth( ) {
//        imagetab = (ImageView) findViewById(R.id.my_friend_tab);
//        BitmapDrawable bd = (BitmapDrawable)getResources().getDrawable(R.mipmap.up_tab);
//        Bitmap bmp = bd.getBitmap();
//          pWidth = bmp.getWidth();
//        DisplayMetrics dm = new DisplayMetrics();
//        this.getWindowManager().getDefaultDisplay().getMetrics(dm);
//       int screenW = dm.widthPixels;
//        offset = (int) ((screenW / num -pWidth)) / 2;//偏移量
//        int avg = (int) (screenW / num);
//        position_one = avg+offset;//起始位置

    }
}
